package com.java1412.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.java1412.utils.CommonResult;

/**
 * 统一限流规则自定义类
 *
 * @author java1412
 * @create 2022-09-19 15:25
 */
public class CustomerBlockHandler {

    public static CommonResult handlerException(BlockException e) {
        return new CommonResult(444, "按照客户自定义限流测试，Glogal handlerException ---- 1");
    }

    public static CommonResult handlerException2(BlockException e) {
        return new CommonResult(444, "按照客户自定义限流测试，Glogal handlerException ---- 2");
    }
}
